#pragma once

using namespace System;
using namespace System::IO;

namespace SpikingNeuronLib
{
	public ref class StreamIO
	{
	public:
		static double CheckVersion(StreamReader^ reader);

		generic <typename T> where T : value class, ValueType
		static Nullable<T> ScanStream(StreamReader^ reader);

		generic <typename T> where T : value class, ValueType
		static T ScanStreamForType(StreamReader^ reader);
	};
}
